<?php

namespace App\Http\Models\Business;

use App\Http\Models\BaseModel;

class RetailContractIndicator extends BaseModel
{
    protected $table = 'retail_contract_indicator';
    public $timestamps = false;

    protected $fillable = [
        'year',
        'payer_code',
        'category_contract_id',
        'amount'
    ];

    public function category_contract()
    {
        return $this->belongsTo('App\Http\Models\CategoryContract', 'category_contract_id', 'id');
    }

    public function payer()
    {
        return $this->belongsTo(Payer::class, 'payer_code', 'code');
    }
}
